import cv2
import numpy as np


# 图片放大与缩小
img = cv2.imread("C:\\Users\\86191\\Pictures\\Saved Pictures\\Camera Roll\\org.jpg")
new_img = cv2.resize(img,None,fx=0.2,fy=0.2,interpolation=cv2.INTER_CUBIC)
cv2.imshow('img',img)
cv2.imshow('new_img',new_img)
cv2.waitKey(0)
